package com.briup.util;

import com.briup.Configuration;
import com.briup.support.ConfigurationAware;
import com.briup.support.PropertiesAware;
import org.apache.log4j.Logger;
import org.apache.log4j.spi.RootLogger;

import java.util.Properties;

/**
 * @Classname LogImpl
 * @Description TODO
 * @Date 2023/11/23 17:36
 * @Created by 崔宗祺
 * @Version v1.0.0
 */
public class LogImpl implements Log , PropertiesAware , ConfigurationAware {
    private Logger log = RootLogger.getRootLogger();

    @Override
    public void debug(String message) {
        log.debug(message);
    }

    @Override
    public void info(String message) {
        log.info(message);
    }

    @Override
    public void warn(String message) {
        log.warn(message);
    }

    @Override
    public void error(String message) {
        log.error(message);
    }

    @Override
    public void fatal(String message) {
        log.fatal(message);
    }
    @Override
    public void init(Properties properties) throws Exception {

    }

    @Override
    public void setConfiguration(Configuration configuration) throws Exception {

    }
}
